import apiUrl from '../base'
import axios from '@/libs/axios'
const homeConterller = {
  //进入模块增加次数
  recentlyUseAdd(data) {
    return axios.post(`${apiUrl.base}v1/RecentlyUse/add`,data)
  },
  //获取最近常用列表
  getRecentlyUseList(data) {
    return axios.post(`${apiUrl.base}v1/RecentlyUse/list`,data)
  },
  //获取常用列表
  getMenuRecord() {
    return axios.get(`${apiUrl.base}v1/MenuPc/getMenuPcForRecord/7`)
  },
  //获取常用列表树
  getMenuTree() {
    return axios.post(`${apiUrl.base}v1/Login/getMenu/pc`)
  },
  //保存常用列表
  saveMenu(data){
    return axios.post(`${apiUrl.base}v1/MenuPc/saveOrUpdateMenuPc`,data)
  },
  //获取未读消息数
  getMessageNum(userId){
    return axios.get(`${apiUrl.risk}v1/WorkbenchMessage/statStatusCount?userId=`+userId)
  },
  //获取代办和逾期消息数
  getMessages(userId,data){
    return axios.get(`${apiUrl.risk}v1/WorkbenchMessage/statModuleCount?status=`+data+'&userId='+userId)
  },
  getPoint(data,code,userId){
    return axios.get(`${apiUrl.risk}v1/WorkbenchMessage/statPointCount?module=`+data+'&status='+code+'&userId='+userId)
  },
  //获取消息列表
  getContentList(data){
    return axios.post(`${apiUrl.risk}v1/WorkbenchMessage/list`,data)
  },
  //获取四色
  getChart(data){
    return axios.get(`${apiUrl.risk}v1/WorkbenchMessage/statLevelCount?userId=`+data)
  },
  //跳转检测
  jumpCheck(data){
    return axios.post(`${apiUrl.risk}v1/Process/workbenchJumpCheck`,data)
  },
};
export default homeConterller
